package cn.wolfcode.crud.domain;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class SystemDictionaryItem {
    private Long id;
    ////字典明细目录id
    private Long parentId;
    //字典明细标题
    private String title;
    //字典明细序号
    private Integer sequence;
    //通过一个get方法封装
    public String getJson(){
        Map map=new HashMap();
        map.put("id",id);
        map.put("parentId",parentId);
        map.put("title",title);
        map.put("sequence",sequence);
        return JSON.toJSONString(map);

    }


}